<%@ page contentType="text/html; charset=UTF-8" %>

<html>
<head>
	<title>密码更新</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<meta http-equiv="Pragma" content="no-cache"><meta http-equiv="Cache-Control" content="no-cache"><meta http-equiv="Expires" content="0">
	<link href="${pageContext.request.contextPath}/css/css.css" rel=stylesheet>
	<link rel="stylesheet" href="${pageContext.request.contextPath}/css/button_css.css" type="text/css">
	<link rel="stylesheet" href="${pageContext.request.contextPath}/css/form_css.css" type="text/css">
	<link rel="stylesheet" href="${pageContext.request.contextPath}/css/table_css.css" type="text/css">
	<link rel="stylesheet" href="${pageContext.request.contextPath}/css/pagetitle_css.css" type="text/css">
	<script language="javascript" src="${pageContext.request.contextPath}/script/validator.js"></script>
	<script language="javascript" src="${pageContext.request.contextPath}/script/calendartime.js"></script>
	<script type="text/javascript">
		function doSave(){
			if(!fieldIsNotEmpty(document.forms["staffForm"].tmpPassword)){
				return;
			}
			if(!fieldIsNotEmpty(document.forms["staffForm"].rePassword)){
				return;
			}
			
			if(document.forms["staffForm"].tmpPassword.value != document.forms["staffForm"].rePassword.value){
				alert("两次输入的密码不一致！");
				return;
			}
			document.forms["staffForm"].submit();
		}
		function goback(){
			window.location = "${pageContext.request.contextPath}/system/staffManager.do?method=staffManager";
		}
		
	</script>
</head>
<body>
<form name="staffForm" method="POST" action="${pageContext.request.contextPath}/system/staffManager.do?method=modifyStaffPassword">
<input type="hidden" name="staffId" value="${staff.staffId}"/>
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="30">
	<tr> 
	  <td width="22" class="page_titlebar_head">&nbsp;</td>
	  <td class="page_titlebar_bg" width="981">密码更新</td>
	</tr>
</table>
<center>
<table width="80%" class="InputFrameMain" cellspacing="0" cellpadding="0" border="0" height="100">
  <tr class="InputFrameLine">
  		<td colspan="2" class="table_unfold_titlebar_small_bg">&nbsp;&nbsp;<b>个人密码更新</b></td>
  </tr>
  <tr class="InputFrameLine">
		<td class="table_label" width="20%" id="tmpPassword_TEXT">密码</td>
		<td width="80%">&nbsp;<input class="input" type="password" name="tmpPassword" value="${staff.tmpPassword}" style="width:150px" maxlength="20"/></td>
  </tr>
  <tr class="InputFrameLine">
		<td class="table_label" width="20%" id="rePassword_TEXT">确认密码</td>
		<td width="80%">&nbsp;<input class="input" type="password" name="rePassword" value="${staff.tmpPassword}" style="width:150px" maxlength="20"/></td>
  </tr>
  <tr class="InputFrameLine">
  	<td width="100%" colspan="4" align="center"><input type="button" class="button_common" name="save_button" value="保存" onclick="javascript:doSave()">
  	<input type="button" class="button_common" name="goback_button" value="返回" onclick="javascript:history.go(-1);"></td>
  </tr>
</table>
</center>
</form>
${message}
</body>
</html>
<jsp:include page="../footer.jsp"/>